package junitlearning.junitTest;

import org.junit.jupiter.api.*;

/**
 * @author tongchen
 * @create 2023-07-25 20:05
 */
@TestMethodOrder(MethodOrderer.OrderAnnotation.class)
public class JuitTest {
    @BeforeEach
    public void beforeEach(){
        System.out.println("BeforeEachRTest");
    }
    @AfterEach
    public void afterEach(){
        System.out.println("AfterEachTest");
    }
    @AfterAll
    static void afterAll(){
        System.out.println("AfterAllTest");
    }
    @BeforeAll
    static void beforeAllTest(){
        System.out.println("beforeAllTest");
    }
    @Test
    @Order(1)
    public void test01(){
        System.out.println("测试test注解01");
    }
    @Test
    @Order(3)
    public void test02(){
        System.out.println("测试test注解02");
    }
    @Test
    @Order(2)
    public void test03(){
        System.out.println("测试test注解03");
    }

}
